package com.gfl.trivialrestclient.controllers.forms;

/**
 * Form submition status values placeholder for JSON
 * 
 * @author Bedlam
 * 
 */
public class AjaxSubmitionStatus {

	private boolean success;
	private String targetUrl;
	private String errorMessage;
	private AjaxBindingResult bindingResult;

	public AjaxSubmitionStatus(boolean success) {
		this.success = success;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getTargetUrl() {
		return targetUrl;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public AjaxBindingResult getBindingResult() {
		return bindingResult;
	}

	public void setBindingResult(AjaxBindingResult bindingResult) {
		this.bindingResult = bindingResult;
	}

}
